package main

import (
	"github.com/gin-gonic/gin"
)

func main() {

	r := gin.Default()

	// 设置模板文件的位置,关于前端的
	r.LoadHTMLGlob("templates/*.html")
	r.Static("/CSS", "./templates/CSS")
	r.Static("/js", "./templates/js")
	r.Static("/static", "./templates/static")

	r.GET("/", func(c *gin.Context) {
		c.HTML(200, "login.html", nil)
	})
	r.GET("/developer", func(c *gin.Context) {
		c.HTML(200, "developer.html", nil)
	})
	r.GET("/web", func(c *gin.Context) {
		c.HTML(200, "web.html", nil)
	})
	r.GET("/admin", func(c *gin.Context) {
		c.HTML(200, "admin.html", nil)
	})

	r.Run(":8080")
}
